package com.lj.back.manage.scaffold.module.sys.DTO;

import com.lj.back.manage.scaffold.common.DTO.LoginDTO;
import com.lj.back.manage.scaffold.common.annotation.valid.Code;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 登录传输对象
 * @author lv
 * @version 1.0.0
 */
@Data
@ApiModel("后台系统登录对象")
@EqualsAndHashCode(callSuper=true)
public class SysLoginDTO extends LoginDTO {

    @ApiModelProperty(value = "验证码key",example = "5c4e5a23392f4ce6901f752afb809f88",required = true)
    @NotBlank(message = "{code.key}")
    private String key;

    @ApiModelProperty(value = "验证码",example = "365fe",required = true)
    @Code
    @NotBlank(message = "{code.notnull}")
    private String code;

}
